<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:with="title='精品书城',active='home'"
      xmlns="http://www.w3.org/1999/html">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>商品下架</title>
    <link rel="stylesheet" type="text/css" href="http://localhost:8894/css/reset.css">
    <link rel="stylesheet" type="text/css" href="http://localhost:8894/css/main.css">
    <script type="text/javascript" src="http://localhost:8894/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="http://localhost:8894/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://localhost:8894/js/slide.js"></script>
    <script src="http://localhost:8894/js/index.js"></script>
</head>
<body>

<div class="header_con">
    <div class="header">
        <div class="welcome fl">欢迎来到精品书城!</div>
        <div class="fr">
            <div class="login_btn fl" th:if="${session.uaccount} ne null">
                <a href="">
                    欢迎您：<em th:text="${session.uaccount}"></em>
                </a>
                <span>|</span>
                <a href="http://localhost:8896/goods/quit">退出</a>
            </div>
            <div class="login_btn fl" th:if="${session.uaccount} eq null">
                <a href="http://localhost:8893/admin/tologin">
                    请您登陆
                </a>
            </div>
        </div>
    </div>
</div>

<div class="search_bar clearfix">
    <a th:href="@{'getAll?uaccount='+${session.uaccount}}" class="logo fl"><img src="http://localhost:8894/img/shucheng.jpg"></a>
    <div class="search_con fl">
        <form action="/goods/getOne" method="get">
            <input type="text" class="input_text fl" name="name" placeholder="搜索商品">
            <input type="submit" class="input_btn fr" name="" value="搜索">
        </form>
    </div>
    <!--<div class="guest_cart fr">-->
    <!--<a href="cart.html" class="cart_name fl">我的购物车</a>-->
    <!--<div class="goods_count fl" id="show_count">1</div>-->
    <!--</div>-->
</div>

<form action="/goods/delgoods" method="get">
    <div class="navbar_con">
        <div class="navbar clearfix">
            <div class="subnav_con fl">
                <h1>全部商品分类</h1>
                <span></span>
                <ul class="subnav">
                    <li><a href="#" class="fruit">悬疑推理</a></li>
                    <li><a href="#" class="seafood">国风文学</a></li>
                    <li><a href="#" class="meet">兴趣培养</a></li>
                    <li><a href="#" class="egg">经典名著</a></li>
                </ul>
            </div>
            <ul class="navlist fl">
                <li><a th:href="@{'getAll?uaccount='+${session.uaccount}}">首页</a></li>
            </ul>
        </div>
    </div>

    <div class="breadcrumb">
        <a href="#">商品详情</a>
    </div>

    <form action="/goods/delgoods" method="get">
        <div class="goods_detail_con clearfix">

            <div class="goods_detail_pic fl"><img  th:src="${detail.gremain}"></div>
            <div class="goods_detail_list fr">
                <input style="top: 1px;display: none" type="text" name="gid" th:value="${detail.gid}">
                <p  class="deswaw" style="border:none;font-size:23px;color:#ff3e3e;" name="name" th:text="${detail.gname}"></p>
                <p th:text="${detail.gdetails}"></p>
                <div class="prize_bar">
				<span class="show_pirze">¥
                    <em style="border:none; background-color: #fff5f5;font-size:20px;color:#ff3e3e;" name="price" th:text="${detail.gprice}"></em>
				</span>
                </div>
                <div class="operate_btn">
                    <div class="guest_cart fr">
                        <input  type="submit" value="删除商品" class="cart_name fl" style="height:35px;vertical-align:middle;
                        text-align:left;background: #ff3e3e;color: whitesmoke;font-family: Microsoft Yahei" >
                    </div>
                </div>
            </div>
        </div>

    </form>


    <div class="footer">
        <div class="foot_link">
            <a href="#">关于我们</a>
            <span>|</span>
            <a href="#">联系我们</a>
            <span>|</span>
            <a href="#">招聘人才</a>
            <span>|</span>
            <a href="#">友情链接</a>
        </div>
        <p>CopyRight © 2021 人生无限公司 All Rights Reserved</p>
        <p>电话：88888888    河南省洛阳市洛阳理工学院开元校区</p>
    </div>
    <div class="add_jump"></div>


    <script src="http://localhost:8894/js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript">
        /*<![CDATA[*/
        $(document).on('click', '#sendArr', function () {
            var name = ($("#name").html());
            var price=($("#price").html());
            alert(name+""+price);
            $.ajax({
                type: 'get',
                dataType: 'json',
                url: 'http://localhost:8894/goods/cart',
                data: {
                    name:name,
                    price:price,
                },
            });
        });
    </script>
</form>
</body>
</html>
